/**
 * Description:
 * Class Name:CarSpeedMeter
 * Date:2022/1/30 10:52
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第6章_面向对象_下._6_5_抽象类;

public class CarSpeedMeter extends SpeedMeter{
    private double radius;
    public CarSpeedMeter(double radius){
        this.radius = radius;
    }
    public double calGirth(){
        return radius * 2 * Math.PI;
    }

    public static void main(String[] args) {
        var csm = new CarSpeedMeter(0.34);
        csm.setTurnRate(15);
        System.out.println(csm.getSpeed());
    }
}
